package com.ling.pl.security.decision;

import com.ling.pl.security.model.DefaultUser;

import java.util.Collection;

public interface AccessDecisionVoter<T> {
    int ACCESS_GRANTED = 1; //决策结果-允许
    int ACCESS_ABSTAIN = 0; //决策结果-放弃
    int ACCESS_DENIED = -1; //决策结果-拒绝

    int vote(DefaultUser authentication, Object object, Collection attributes);
}
